#include "junix.h"

int main(int argc, char **argv)
{
	char buf[BUFSIZ];
	ssize_t sz;
	int fd = passive_udp("123",5);

	while(1)
	{
		if( (sz=recvfrom(fd,buf,BUFSIZ,0,NULL,NULL)) < 0 )
			err_sys("sendto");

		if(sz>0)
			Write(STDOUT_FILENO, buf, sz);
	}

    exit(0);
}

